// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Log : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Log, MasterDbContextLocator>
    {

        public long Id { get; set; }
        public string LogName { get; set; }
        public string LogDetails { get; set; }
        public DateTime? CreateTime { get; set; }
    
        public void Configure(EntityTypeBuilder<Log> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.CreateTime)
                    .HasColumnType("datetime")
                    .HasDefaultValueSql("(getdate())");

                entityBuilder.Property(e => e.LogName).HasMaxLength(50);
        }

    }
}

